import Ajax from "@/assets/js/common/ajax";



//用户获取信息
export const getUserUserinfo=(params,success,fail)=>{
        Ajax(`/user/userinfo`,params,success,fail,"GET");
    };

//添加用户
export const addtUserAdd=(params,success,fail)=>{
    Ajax(`/user/add`,params,success,fail,"POST");
};
  


//用户信息列表
export const getUserList=(params,success,fail)=>{
    Ajax(`/user/list`,params,success,fail,"POST");
};

 //修改密码
export const updatePassword=(params,success,fail)=>{ 
    Ajax(`/dolphin-auth/management/oauth/logout`,params,success,fail,"GET");
}

//获取当前登录用户信息
export const query=(params,success,fail)=>{
    Ajax(`/dolphin-auth/management/oauth/logout`,params,success,fail,"GET");
}

export const download=(params,success,fail)=>{
    Ajax(`/dolphin-auth/management/oauth/current/user/${params.id}`, {responseType: "blob"},success,fail,"GET");
}

